package com.learn.core.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @auther CodeGenerator
 * @create 2021-03-15 04:33:24
 * @describe 实体类
 */
@TableName("l_media")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LMedia对象", description="")
public class LMedia implements Serializable {

    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "主键")
        @TableId(value = "file_id", type = IdType.AUTO)
    private Integer fileId;

        @ApiModelProperty(value = "原文件名")
        @TableField("title_orig")
    private String titleOrig;

        @ApiModelProperty(value = "修改后文件名")
        @TableField("titleAlter")
    private String titleAlter;

        @ApiModelProperty(value = "文件大小")
        @TableField("size")
    private String size;

        @ApiModelProperty(value = "文件类型")
        @TableField("type")
    private String type;

        @ApiModelProperty(value = "文件保存路径")
        @TableField("path")
    private String path;

        @ApiModelProperty(value = "文件上传时间")
        @TableField("uploadTime")
    private Date uploadTime;


    public Integer getFileId() {
        return fileId;
    }

    public LMedia setFileId(Integer fileId) {
        this.fileId = fileId;
        return this;
    }

    public String getTitleOrig() {
        return titleOrig;
    }

    public LMedia setTitleOrig(String titleOrig) {
        this.titleOrig = titleOrig;
        return this;
    }

    public String getTitleAlter() {
        return titleAlter;
    }

    public LMedia setTitleAlter(String titleAlter) {
        this.titleAlter = titleAlter;
        return this;
    }

    public String getSize() {
        return size;
    }

    public LMedia setSize(String size) {
        this.size = size;
        return this;
    }

    public String getType() {
        return type;
    }

    public LMedia setType(String type) {
        this.type = type;
        return this;
    }

    public String getPath() {
        return path;
    }

    public LMedia setPath(String path) {
        this.path = path;
        return this;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public LMedia setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
        return this;
    }

    @Override
    public String toString() {
        return "LMedia{" +
        "fileId=" + fileId +
        ", titleOrig=" + titleOrig +
        ", titleAlter=" + titleAlter +
        ", size=" + size +
        ", type=" + type +
        ", path=" + path +
        ", uploadTime=" + uploadTime +
        "}";
    }
}